From 74cd1f54a948f3710f8a6d7ebf1e5c3b09ac51e7 Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Sun, 1 Dec 2019 11:16:03 +0000 Subject: [PATCH] spelling corrections Gbp-Pq: Name 0001-spelling-corrections.patch --- README.md | 6 +++--- src/lookup.c | 4 ++-- src/lookup.h | 8 ++++---- src/lookup_kas.c | 2 +- src/main.c | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 5379842..78ee19c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Dropwatch is a project I started in an effort to improve the ability for developers and system administrator to diagnose problems in the Linux Networking stack, specifically in our ability to diagnose where packets are getting dropped. From my probing, I've come to the conclusion that there are four main -shortcommings in our current environment: +shortcomings in our current environment: 1) Consolidation, or lack thereof. Currently, if you would like to check on the status of dropped packets in the kernel, you need to check at least 3 places, @@ -29,11 +29,11 @@ dropped packets are not always clear. Does a UDPInError mean the application receive buffer was full, or does it mean its checksum was bad? Dropwatch attempts to disambiguate the causes for dropped packets. -4) Performance. Utilties can be written to aggregate the data in the various +4) Performance. Utilities can be written to aggregate the data in the various other utilities to solve some of these problems, but such solutions require periodic polling of several interfaces, which is far from optimal, especially when lost packets are rare. This solution improves on the performance aspect by -implementing a kernel feature which allows asyncronous notification of dropped +implementing a kernel feature which allows asynchronous notification of dropped packets when they happen. Building Dropwatch diff --git a/src/lookup.c b/src/lookup.c index ba54991..2fce5de 100644 --- a/src/lookup.c +++ b/src/lookup.c @@ -20,7 +20,7 @@ /* * This is a translator. given an input address, this will convert it into a * function and offset. Unless overridden, it will automatically determine - * tranlations using the following methods, in order of priority: + * translations using the following methods, in order of priority: * 1) /usr/lib/debug/ using libbfd * 2) /proc/kallsyms */ @@ -40,7 +40,7 @@ extern struct lookup_methods kallsym_methods; static int lookup_null_init(void) { - printf("Initalizing null lookup method\n"); + printf("Initializing null lookup method\n"); return 0; } diff --git a/src/lookup.h b/src/lookup.h index e6568d8..9e05561 100644 --- a/src/lookup.h +++ b/src/lookup.h @@ -20,7 +20,7 @@ /* * This is a translator. given an input address, this will convert it into a * function and offset. Unless overridden, it will automatically determine - * tranlations using the following methods, in order of priority: + * translations using the following methods, in order of priority: * 1) /usr/lib/debug/ using libbfd * 2) /proc/kallsyms */ @@ -30,7 +30,7 @@ /* - * Initalization routine + * Initialization routine * INPUTS: * method - enum describing how to do translation * * METHOD_NULL : Just print pc values, not symbols @@ -38,8 +38,8 @@ * * METHOD_DEBUGINFO : use debuginfo package * * METHOD_KALLSYMS : use /proc/kallsyms * returns: - * * 0 : initalization succeded - * * < 0 : initalization failed + * * 0 : initialization succeeded + * * < 0 : initialization failed */ typedef enum { METHOD_NULL = 0, diff --git a/src/lookup_kas.c b/src/lookup_kas.c index 5e05630..73f1eb5 100644 --- a/src/lookup_kas.c +++ b/src/lookup_kas.c @@ -137,7 +137,7 @@ static int lookup_kas_proc(__u64 pc, struct loc_result *location) static int lookup_kas_init(void) { - printf("Initalizing kallsyms db\n"); + printf("Initializing kallsyms db\n"); return 0; } diff --git a/src/main.c b/src/main.c index c8f08c7..7a22466 100644 --- a/src/main.c +++ b/src/main.c @@ -43,7 +43,7 @@ #include "lookup.h" /* - * This is just in place until the kernel changes get comitted + * This is just in place until the kernel changes get committed */ #ifndef NETLINK_DRPMON #define NETLINK_DRPMON 20 @@ -420,7 +420,7 @@ void display_help() printf("exit\t\t\t\t - Quit dropwatch\n"); printf("help\t\t\t\t - Display this message\n"); printf("set:\n"); - printf("\talertlimit \t - caputre only this many alert packets\n"); + printf("\talertlimit \t - capture only this many alert packets\n"); printf("start\t\t\t\t - start capture\n"); printf("stop\t\t\t\t - stop capture\n"); } @@ -599,7 +599,7 @@ int main (int argc, char **argv) /* - * Initalize our lookup library + * Initialize our lookup library */ init_lookup(meth); -- 2.30.2